#拉勾网的反爬虫太厉害了，暂时爬不了,我先服了

# import requests
# import time
# from lxml import etree
#
#
# kv={
#     'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36',
#     'referer':'https://www.lagou.com/zhaopin/qukuailian/?labelWords=label',
#     'Cookie': 'user_trace_token=20190516091629-6a630ba6-0c71-44d1-86cd-f043fca3f263; _ga=GA1.2.404876742.1557969392; LGUID=20190516091630-3c7d4193-7778-11e9-9a90-525400f775ce; index_location_city=%E5%85%A8%E5%9B%BD; JSESSIONID=ABAAABAAAGFABEFC4C5C8C2584B3B8D36709CB6E20D5E1B; _gid=GA1.2.236059972.1558526975; Hm_lvt_4233e74dff0ae5bd0a3d81c6ccf756e6=1558021288,1558092012,1558098442,1558526975; TG-TRACK-CODE=index_navigation; X_HTTP_TOKEN=95fb409bdab3946d3364358551a36e85eda3c10835; _gat=1; Hm_lpvt_4233e74dff0ae5bd0a3d81c6ccf756e6=1558534635; LGSID=20190522221714-4bfa4163-7c9c-11e9-a116-5254005c3644; PRE_UTM=; PRE_HOST=; PRE_SITE=; PRE_LAND=https%3A%2F%2Fwww.lagou.com%2Fzhaopin%2Fqukuailian%2F%3FlabelWords%3Dlabel; LGRID=20190522221714-4bfa43e0-7c9c-11e9-a116-5254005c3644; SEARCH_ID=ff4bf45c83bc4613b926809ef660b9c8'
# }
# data={
#     'first': 'true',
#     'pn': 1,
#     'kd': '区块链'
# }
# def getInfo(url):
#     r=requests.post(url,headers=kv,data=data)
#     print(r.json())
#
# def main():
#     url='https://www.lagou.com/jobs/companyAjax.json?needAddtionalResult=false'
#     getInfo(url)
#
# if __name__=='__main__':
#     main()